<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    const data = {
        bookName:"天龙八部"
    }
    const logArr = [
        {
            createTime:Date.now(),
            bookName:data.bookName
        }
    ]
    Object.defineProperty(data,"bookName",{
        get(){
            return "《"+logArr[logArr.length-1].bookName+"》";
        },
        set(bookName){
            logArr.push({
                createTime: Date.now(),
                bookName
            })
        }
    });
    console.log(data.bookName);
    data.bookName = "射雕英雄传";
    console.log(data.bookName);


</script>
</html>